home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / Member.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  67 lines

  1. /*
  2.  * @(#)Member.java    1.5 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang.reflect;
  16.  
  17. /**
  18.  * Member is an interface that reflects identifying information about
  19.  * a single member (a field or a method) or a constructor.
  20.  *
  21.  * @see    java.lang.Class
  22.  * @see    Field
  23.  * @see    Method
  24.  * @see    Constructor
  25.  *
  26.  * @author Nakul Saraiya
  27.  */
  28. public
  29. interface Member {
  30.  
  31.     /**
  32.      * Identifies the set of all public members of a class or interface,
  33.      * including inherited members.
  34.      * @see java.lang.SecurityManager#checkMemberAccess
  35.      */
  36.     public static final int PUBLIC = 0;
  37.  
  38.     /**
  39.      * Identifies the set of declared members of a class or interface.
  40.      * Inherited members are not included.
  41.      * @see java.lang.SecurityManager#checkMemberAccess
  42.      */
  43.     public static final int DECLARED = 1;
  44.  
  45.     /**
  46.      * Returns the Class object representing the class or interface
  47.      * that declares the member or constructor represented by this Member.
  48.      */
  49.     public Class getDeclaringClass();
  50.  
  51.     /**
  52.      * Returns the simple name of the underlying member or constructor
  53.      * represented by this Member.
  54.      */
  55.     public String getName();
  56.  
  57.     /**
  58.      * Returns the Java language modifiers for the member or
  59.      * constructor represented by this Member, as an integer.  The
  60.      * Modifier class should be used to decode the modifiers in
  61.      * the integer.
  62.      * @see Modifier
  63.      */
  64.     public int getModifiers();
  65.  
  66. }
  67.